import request from '/@/utils/request';


//  根据应用获取菜单
export const getMenuListById = (params?: object) => {
	return request({
		url: '/sysMenu/list',
		method: 'get',
		data: params,
	});
}

//  新增菜单
export const addMenuItem = (params: object) => {
	return request({
		url: '/sysMenu/add',
		method: 'post',
		data: params,
	});
}
//  编辑菜单
export const editMenuItem = (params: object) => {
	return request({
		url: '/sysMenu/edit',
		method: 'post',
		data: params,
	});
}
//  删除菜单
export const deleteMenuItem = (params: object) => {
	return request({
		url: '/sysMenu/delete',
		method: 'post',
		data: params,
	});
}